<template>
  <div id="app">
    <ul>
      <li v-for="item in arr" :key="item">{{ item }}</li>
    </ul>
    <button @click="btnFn">走一走</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      arr: ["美女", "程序猿", "帅哥"],
    };
  },
  methods: {
    btnFn() {
      let str = this.arr.splice(0, 1).join();
      this.arr.push(str);
    },
  },
};
</script>

<style>
</style>
